from controller.modules.database import database_blu
from flask import Flask,jsonify,request

@database_blu.route("/getData",methods=["GET", "POST"])
def getData():
    data =  {"code":0,"msg":"","count":1000,
             "data":[{"num":1,"username":"j2ee","number":"8209190166","location":"湖南省长沙市铁道学院铁二舍",
                      "time":"2021-5-10 19:10:10","experience":255},
                     {"num": 2, "username": "j2ee1", "number": "8209190165", "location": "湖南省长沙市铁道学院铁二舍",
                      "time": "2021-5-10 19:10:12", "experience": 255},
                     ]}
    return jsonify(data)